/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gisgraph.components;

/**
 *
 * @author Slawek
 */
public class GISEdge {
    
    private boolean isReliable;
    private int weight;
    
    public GISEdge(boolean isReliable, int weight)
    {
        this.isReliable = isReliable;
        this.weight = weight;
    }

    GISEdge(JGraphEdge e) {
        this.isReliable = e.getIsReliable();
        this.weight = e.getWeight();
    }
    
    public boolean getIsReliable()
    {
        return isReliable;
    }
    
    public int getWeight()
    {
        return weight;
    }
    
    public void setWeight(int weight)
    {
        this.weight = weight;
    }
    
    public void setIsReliable(boolean isReliable)
    {
        this.isReliable = isReliable;
    }
    
    public String toString()
    {
        return ((Integer)weight).toString();
    }
}
